package redis

/*
	Redis Key
*/
const (
	HashPrefix                = "new_app:post:"
	KeyPostTimeZSet           = "post:time"   // zset;帖子及发帖时间定义
	KeyPostScoreZSet          = "post:score"  // zset;帖子及投票分数定义
	KeyPostVotedZSetPrefix    = "post:voted:" // zset;记录用户及投票类型;参数是post_id
	KeyCommunityPostSetPrefix = "community:"  // set保存每个分区下帖子的id
)

func getRedisKey(key string) string {
	return HashPrefix + key
}
